package com.szly.phm.common.entity.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @Description : ${创建类}
 * @Author : chengjiang
 * @Date: 2021/7/5 14:37
 */
@Data
public class CreateUserDTO {

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    private String password="123456";

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "用户类型00学生用户01老师用户02后台用户")
    private String userType;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "(^1[3456789]\\d{9}$)|(^4\\d{9}$)|(^8\\d{7,9}$)|(^9\\d{4}$)", message = "手机号码不正确")
    private String mobile;
    @ApiModelProperty(value = "职称")
    private String jobName;
    /**
     * 邮箱
     */

    @ApiModelProperty(value = "邮箱")
    private String mailbox;
    @ApiModelProperty(value = "证件id")
    private String certificatesId;


    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "区域id")
    private String areaId;

}
